<?php
$login_name = $_REQUEST["login_name"];
$pwd = $_REQUEST["pwd"];
$hobby = $_REQUEST["hobby"];
echo $login_name;
echo "<br>";
echo $pwd;
echo "<br>";
print_r($hobby);
echo "<br>";

$hobbies = implode(",",$hobby);
// 获取连接
// 执行sql
$sql = "insert into t_user (login_name,pwd,hobby) values ('$login_name','$pwd','$hobbies') ";
echo $sql;
// 处理结果
// 关闭连接

?>